package com.dr.cmdb.core.service.impl;

import com.dr.cmdb.core.domain.TablesModel;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.dr.cmdb.core.mapper.TablesModelMapper;
import com.dr.cmdb.core.service.TablesModelService;
   /**     
      * @ProjectName:    cmdb
      * @Package:        com.dr.cmdb.application.service
      * @Description:     java类作用描述 
      * @Author:            duanrui
      * @CreateDate:     2021/3/16 19:42
      * @Version:        1.0
      * 
Copyright: Copyright (c) 2021

* */
@Service
public class TablesModelServiceImpl implements TablesModelService{

    @Resource
    private TablesModelMapper tablesModelMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tablesModelMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TablesModel record) {
        return tablesModelMapper.insertSelective(record);
    }

    @Override
    public TablesModel selectByPrimaryKey(Integer id) {
        return tablesModelMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TablesModel record) {
        return tablesModelMapper.updateByPrimaryKeySelective(record);
    }

}
